package com.yicong.ants.bean.scenic;

/**
 * @author cchao
 * @version 2019-08-08.
 */
public class WeatherBean2 {

    /**
     * day : 今天
     * date : 2019-08-08
     * week : 星期四
     * wea : 晴转雷电
     * wea_img : qing
     * humidity : 61
     * tem1 : 35℃
     * tem2 : 27℃
     * tem : 28℃
     * wea_pic : http://new.fxzgm.com/public/assets/img/weatcher/qzld1.png
     */

    private String day;
    private String date;
    private String week;
    private String wea;
    private String wea_img;
    private int humidity;
    private String tem1;
    private String tem2;
    private String tem;
    private String wea_pic;

    public String temperature;

    public WeatherBean2() {
    }

    public String getTemperature() {
        return tem2.replace("℃", "") + "/" + tem1;
    }

    public String getDay() {
        return this.day;
    }

    public String getDate() {
        return this.date;
    }

    public String getWeek() {
        return this.week;
    }

    public String getWea() {
        return this.wea;
    }

    public String getWea_img() {
        return this.wea_img;
    }

    public int getHumidity() {
        return this.humidity;
    }

    public String getTem1() {
        return this.tem1;
    }

    public String getTem2() {
        return this.tem2;
    }

    public String getTem() {
        return this.tem;
    }

    public String getWea_pic() {
        return this.wea_pic;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public void setWeek(String week) {
        this.week = week;
    }

    public void setWea(String wea) {
        this.wea = wea;
    }

    public void setWea_img(String wea_img) {
        this.wea_img = wea_img;
    }

    public void setHumidity(int humidity) {
        this.humidity = humidity;
    }

    public void setTem1(String tem1) {
        this.tem1 = tem1;
    }

    public void setTem2(String tem2) {
        this.tem2 = tem2;
    }

    public void setTem(String tem) {
        this.tem = tem;
    }

    public void setWea_pic(String wea_pic) {
        this.wea_pic = wea_pic;
    }

    public void setTemperature(String temperature) {
        this.temperature = temperature;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof WeatherBean2)) return false;
        final WeatherBean2 other = (WeatherBean2) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$day = this.getDay();
        final Object other$day = other.getDay();
        if (this$day == null ? other$day != null : !this$day.equals(other$day)) return false;
        final Object this$date = this.getDate();
        final Object other$date = other.getDate();
        if (this$date == null ? other$date != null : !this$date.equals(other$date)) return false;
        final Object this$week = this.getWeek();
        final Object other$week = other.getWeek();
        if (this$week == null ? other$week != null : !this$week.equals(other$week)) return false;
        final Object this$wea = this.getWea();
        final Object other$wea = other.getWea();
        if (this$wea == null ? other$wea != null : !this$wea.equals(other$wea)) return false;
        final Object this$wea_img = this.getWea_img();
        final Object other$wea_img = other.getWea_img();
        if (this$wea_img == null ? other$wea_img != null : !this$wea_img.equals(other$wea_img))
            return false;
        if (this.getHumidity() != other.getHumidity()) return false;
        final Object this$tem1 = this.getTem1();
        final Object other$tem1 = other.getTem1();
        if (this$tem1 == null ? other$tem1 != null : !this$tem1.equals(other$tem1)) return false;
        final Object this$tem2 = this.getTem2();
        final Object other$tem2 = other.getTem2();
        if (this$tem2 == null ? other$tem2 != null : !this$tem2.equals(other$tem2)) return false;
        final Object this$tem = this.getTem();
        final Object other$tem = other.getTem();
        if (this$tem == null ? other$tem != null : !this$tem.equals(other$tem)) return false;
        final Object this$wea_pic = this.getWea_pic();
        final Object other$wea_pic = other.getWea_pic();
        if (this$wea_pic == null ? other$wea_pic != null : !this$wea_pic.equals(other$wea_pic))
            return false;
        final Object this$temperature = this.getTemperature();
        final Object other$temperature = other.getTemperature();
        if (this$temperature == null ? other$temperature != null : !this$temperature.equals(other$temperature))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof WeatherBean2;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $day = this.getDay();
        result = result * PRIME + ($day == null ? 43 : $day.hashCode());
        final Object $date = this.getDate();
        result = result * PRIME + ($date == null ? 43 : $date.hashCode());
        final Object $week = this.getWeek();
        result = result * PRIME + ($week == null ? 43 : $week.hashCode());
        final Object $wea = this.getWea();
        result = result * PRIME + ($wea == null ? 43 : $wea.hashCode());
        final Object $wea_img = this.getWea_img();
        result = result * PRIME + ($wea_img == null ? 43 : $wea_img.hashCode());
        result = result * PRIME + this.getHumidity();
        final Object $tem1 = this.getTem1();
        result = result * PRIME + ($tem1 == null ? 43 : $tem1.hashCode());
        final Object $tem2 = this.getTem2();
        result = result * PRIME + ($tem2 == null ? 43 : $tem2.hashCode());
        final Object $tem = this.getTem();
        result = result * PRIME + ($tem == null ? 43 : $tem.hashCode());
        final Object $wea_pic = this.getWea_pic();
        result = result * PRIME + ($wea_pic == null ? 43 : $wea_pic.hashCode());
        final Object $temperature = this.getTemperature();
        result = result * PRIME + ($temperature == null ? 43 : $temperature.hashCode());
        return result;
    }

    public String toString() {
        return "WeatherBean2(day=" + this.getDay() + ", date=" + this.getDate() + ", week=" + this.getWeek() + ", wea=" + this.getWea() + ", wea_img=" + this.getWea_img() + ", humidity=" + this.getHumidity() + ", tem1=" + this.getTem1() + ", tem2=" + this.getTem2() + ", tem=" + this.getTem() + ", wea_pic=" + this.getWea_pic() + ", temperature=" + this.getTemperature() + ")";
    }
}
